package com.project.lk.nurseapp.utils;

import android.graphics.Color;

import com.jcodecraeer.xrecyclerview.ProgressStyle;
import com.jcodecraeer.xrecyclerview.SimpleViewSwitcher;
import com.jcodecraeer.xrecyclerview.progressindicator.AVLoadingIndicatorView;
import com.project.lk.nurseapp.base.BaseApp;

/**
 * 功能介绍：
 * 项目名：
 * 模块名称：
 * 作者：LK
 * 日期：2018/1/9
 * 修改日期：
 */
public class ProgressUtils {

    public static void setProgress(SimpleViewSwitcher mProgressBar){
        AVLoadingIndicatorView progressView = new AVLoadingIndicatorView(BaseApp.getContext());
        progressView.setIndicatorColor(Color.parseColor("#11B6A3"));
        progressView.setIndicatorId(ProgressStyle.BallSpinFadeLoader);
        mProgressBar.setView(progressView);
    }
}
